package com.safe.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 部门管理
 * <p>
 * TABLE  t_uc_dept
 * MyBatis Generator Create
 */
public class Depart implements Serializable {
    /**
     * dept_id
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    private String deptId;

    /**
     * parent_id
     * 上级部门ID，一级部门为0
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    private String parentId;

    /**
     * dept_name
     * 部门名称
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    private String deptName;

    /**
     * order_num
     * 排序
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    private Integer orderNum;

    /**
     * del_flag
     * 是否删除  -1：已删除  0：正常
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    private Byte delFlag;

    /**
     * create_time
     * 创建时间
     * <p>
     * WARNING - @mbg.generated MyBatis Generator Create
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Byte getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Byte delFlag) {
        this.delFlag = delFlag;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}